Skip to content

Add runtime operations in WFE#59966

Open
salmart-dev wants to merge 1 commit intomasterfrom
feature/workflow-app-rules
Open

Add runtime operations in WFE#59966
salmart-dev wants to merge 1 commit intomasterfrom
feature/workflow-app-rules

Conversation

@salmart-dev
Copy link
Copy Markdown
Contributor

@salmart-dev salmart-dev commented Apr 28, 2026

Summary

Introduces runtime operations to the Workflow Engine

Sometimes apps may want to hook into the WFE event/check pipeline without surfacing those flows to administrators or users. Classic WFE operations are stored in the DB and fully visible and editable via the UI. Runtime operations fill the gap for programmatically defined, app-internal flows.

Registration flow

At boot, the WFE application dispatches RegisterRuntimeOperationsEvent (note it's internal) before registerRuleListeners runs. Internal apps can listen to this event and call Manager::addRuntimeOperation() as needed.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@salmart-dev salmart-dev self-assigned this Apr 28, 2026
@salmart-dev salmart-dev added the 3. to review Waiting for reviews label Apr 28, 2026
@salmart-dev salmart-dev force-pushed the feature/workflow-app-rules branch 3 times, most recently from 7eff7fc to d19fe62 Compare April 28, 2026 16:06
@salmart-dev salmart-dev changed the title Merge pull request #59942 from nextcloud/fix/view-destructure Add runtime operations in WFE Apr 29, 2026
@salmart-dev salmart-dev force-pushed the feature/workflow-app-rules branch 2 times, most recently from b8030e7 to 07960ec Compare April 29, 2026 11:54
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>

# Conflicts:
#	apps/workflowengine/lib/Manager.php
@salmart-dev salmart-dev force-pushed the feature/workflow-app-rules branch from 07960ec to 5741066 Compare April 29, 2026 13:03
@salmart-dev salmart-dev marked this pull request as ready for review May 5, 2026 11:09
@salmart-dev salmart-dev requested review from ArtificialOwl, nfebe, provokateurin and sorbaugh and removed request for a team May 5, 2026 11:09
* @param class-string<IEntity> $entity
* @param list<class-string<IEntityEvent>> $events
*/
public function addRuntimeOperation(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those public methods should be in OCP?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I'm not sure that this fully satisfies what's needed to have fully working runtime operations, I didn't add those changes publicly as I would consider them "unstable".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants